package com.dhemery.mack.gui;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

//TODO Test this class
public class TemplatePerspective implements IPerspectiveFactory {
	public static final String ID = "com.dhemery.mack.perspective.Template";

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(true);
		layout.addView(ProjectExplorer.ID, IPageLayout.LEFT, 0.20f, editorArea);
		layout.addPerspectiveShortcut(WritingPerspective.ID);
		layout.addPerspectiveShortcut(PlanningPerspective.ID);
		layout.addPerspectiveShortcut(TemplatePerspective.ID);
	}
}
